#include "widget.h"
#include "ui_widget.h"

#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->comboBox->addItem("原味双层深海鳕鱼堡");
    ui->comboBox->addItem("培根安格斯厚牛堡");
    ui->comboBox->addItem("巨无霸");
    ui->comboBox->addItem("麦辣鸡腿堡");

    ui->comboBox_2->addItem("中薯条");
    ui->comboBox_2->addItem("大薯条");
    ui->comboBox_2->addItem("玉米杯");

    ui->comboBox_3->addItem("柠柠海盐汽水");
    ui->comboBox_3->addItem("桃气冻冻汽水");
    ui->comboBox_3->addItem("夏黑葡萄汽水");
    ui->comboBox_3->addItem("雾粉荔枝汽水");

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug() << ui->comboBox->currentText() << ","
             << ui->comboBox_2->currentText() << ","
             << ui->comboBox_3->currentText();
}
